#TOP LEVEL DIRECTORY


cmake_minimum_required (VERSION 2.6)
project (PRS__Proj)

# path to libraries
set (APPLICATIONS /Users/rogsoares/applications)
set(CMAKE_BUILD_TYPE Debug)
#set(CMAKE_BUILD_TYPE Release)
#set(CMAKE_CXX_FLAGS "-Wall -D__SEKKFORBUGS__")
set(CMAKE_CXX_FLAGS "-Wall -pg")

# PETSC
set(PETSC_DIR "${APPLICATIONS}/petsc")
set(PETSC_INCLUDE "${PETSC_DIR}/include" "${PETSC_DIR}/include/private" CACHE PATH "Directory where PETSc header files can be found")
set(PETSC_LIB "${PETSC_DIR}/lib" CACHE PATH "Directory where the PETSc library can be found" )
include_directories(${PETSC_INCLUDE})
link_directories(${PETSC_LIB})
link_libraries(petscmat f2clapack petscksp petsc petscvec petscdm petscsnes petscts f2cblas petsccontrib)


# PROJECT
include_directories(
                    "${PROJECT_SOURCE_DIR}/include" 
                    "${PROJECT_SOURCE_DIR}/src"
                    "${PROJECT_SOURCE_DIR}/src/auxiliar"
                    "${PROJECT_SOURCE_DIR}/src/IO_files"
                    "${PROJECT_SOURCE_DIR}/src/elliptic"
                    "${PROJECT_SOURCE_DIR}/src/hyperbolic"
                    "${PROJECT_SOURCE_DIR}/src/high-order"
                    )
                                    
add_subdirectory(src/IO_files)
add_subdirectory(src/auxiliar)
add_subdirectory(src/elliptic)
add_subdirectory(src/hyperbolic)
add_subdirectory(src/high-order)
add_subdirectory(src)
